package com.ymatou.iapi.godmch.service;

import com.google.gson.JsonObject;
import com.ymt.base.YmatouBaseCall;
import com.ymttest.utils.EnvSetup;
/**
*创建买家邀请码Call
*FreeMaker Template自动生成代码
*/
public class createBuyerInviteCodeCall extends YmatouBaseCall{
	private static String opurl ="api/buyercode/createBuyerInviteCode";
	
	public createBuyerInviteCodeCall() {
		super(EnvSetup.getSystemUrl("godmch_iapi"),opurl,"POST","JSON");
	}
	@Override
	public void addDefHeader() {
		client.addHeader("Accept","text/xml,text/javascript,text/html,application/json");
		client.addHeader("Content-Type", "application/json; charset=UTF-8");
	}
	
	
	
	 public String getStatusCode1()
		{
		  return getString("status");
		}
		
		 public String getMessage()
		{
		 return getString("msg");
		}
		 
			public JsonObject getResult() {
				JsonObject result=null;
				try {
				 result = getJsonObject().get("result").getAsJsonObject();
				}catch (Exception e) {
					e.printStackTrace();
				}
				return result;
			}
}